home *** CD-ROM | disk | FTP | other *** search
File List | 1991-06-17 | 2.8 KB | 121 lines |
- DIM palet%(15)
- DIM oldcolor%(16)
- GOSUB getoldpal
- ON ERROR GOSUB dead
- a$=" Have fun the easier way with | LowSwitcher (c) 1991 |"
- a$=a$+" Mike Harrington | (704) 786-0622"
- ALERT 1,a$,0," OK",a%
- ALERT 2," What it about?",2,"YES | NO",a%
- IF a%=1 THEN
- GOSUB inst
- ENDIF
- ctdr%=0
- path$=""
- frmem=FRE(0)
- rez%=XBIOS(4)
- IF rez%=0 THEN
- ALERT 3," You are already in | LOW rez.",0,"OK",a%
- ELSE
- GOSUB drpath
- orgpath$=path$
- ctfile$=path$+"\*.*"
- filein$=""
- CLS
- LOCATE 22,1
- PRINT "Chose A LOW rez. program to execute"
- DO
- ~FSEL_INPUT(ctfile$,filein$,b)
- IF b=1 THEN
- ALERT 2," Run "+filein$+"| in LOW rez?]",1,"YES | NO",a%
- IF a%=2 THEN
- END
- ELSE
- a%=ASC(ctfile$)-65
- ~GEMDOS(14,a%)
- ctfile$=LEFT$(ctfile$,LEN(ctfile$)-4)
- CHDIR ctfile$
- GOSUB medon
- frmem=FRE(0)
- RESERVE fremem
- a%=EXEC(0,filein$,"","")
- RESERVE
- GOSUB medoff
- GOSUB resetoldpallett
- ~GEMDOS(14,ctdr%)
- ctfile$=path$+"\*.*"
- CHDIR orgpath$
- ENDIF
- ENDIF
- ALERT 2," Chose another program",1,"YES | NO",a%
- IF a%=1 THEN
- filein$=""
- CLS
- LOCATE 22,1
- PRINT "Chose A LOW rez. program to execute"
- ELSE
- END
- ENDIF
- LOOP
- ENDIF
- END
- > PROCEDURE inst
- a$=" LowSwitcher permits you to | execute those troublesome |"
- a$=a$+" LOW rez only programs without | switching the desktop. "
- ALERT 1,a$,0," OK",a%
- a$=" After running a LOW rez. |"
- a$=a$+" only prog., LowSwitcher |"
- a$=a$+" will return control to |"
- a$=a$+" your med. rez. screen."
- ALERT 1,a$,0," OK",a%
- a$=" MINOR MOUSE PROBLEMS |"
- a$=a$+" If the mouse is not centered, |"
- a$=a$+" simply move left or right a |"
- a$=a$+" full screen width."
- ALERT 1,a$,0," OK",a%
- a$=" Alert boxes also cause minor |"
- a$=a$+" alignment problems, but as |"
- a$=a$+" with the mouse, you can |"
- a$=a$+" adjust and overcome."
- ALERT 1,a$,0," OK",a%
- a$=" Many LOW rez. only prgrams |"
- a$=a$+" function from within this |"
- a$=a$+" shell with no problems at all."
- ALERT 1,a$,0," OK",a%
- RETURN
- > PROCEDURE medoff
- ~XBIOS(37)
- ~XBIOS(5,L:-1,L:-1,-1)
- IF rez%>0 THEN
- SPOKE 16745056,1
- ~XBIOS(37)
- ~XBIOS(5,L:-1,L:-1,1)
- ENDIF
- RETURN
- > PROCEDURE medon
- IF rez%>0 THEN
- SPOKE 16745056,0
- ~XBIOS(37)
- ~XBIOS(5,L:-1,L:-1,0)
- ENDIF
- RETURN
- > PROCEDURE drpath
- ctdr%=GEMDOS(25)
- path$=DIR$(0)
- path$=CHR$(ctdr%+65)+":"+path$
- RETURN
- > PROCEDURE dead
- ALERT 1," Sorry, I busted?",0,"OK",a%
- RETURN
- > PROCEDURE getoldpal
- LOCAL l%
- FOR l%=0 TO 15
- palet%(l%)=XBIOS(7,l%,-1)
- NEXT l%
- RETURN
- > PROCEDURE resetoldpallett
- LOCAL l%
- FOR l%=0 TO 15
- r%=XBIOS(7,l%,palet%(l%))
- NEXT l%
- RETURN
-